<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>4 块级元素</title>
  <style>
    div,
    p,
    h1,
    h2 {
      border: solid 1px orange;
      height: 50px;
      margin-top: 10px;
      padding-left: 40px;
    }
  </style>
</head>

<body>
  <div>div...</div>
  <p>p...</p>
  <h1>h1...</h1>
  <h2>h2...</h2>
</body>

</html>